/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * FrmCaixa.java
 *
 * Created on 23/09/2009, 11:18:19
 */

package caixa.telas;

import caixa.bd.CaixaDao;
import caixa.classes.Caixa;
import conexao.DAOException;
import java.awt.Image;
import java.awt.Toolkit;
import java.net.URL;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.swing.JOptionPane;
import planocontas.classes.PlanoContas;
import utilitarios.ItelaConsulta;

/**
 *
 * @author Wolverine
 */
public class FrmCaixa extends javax.swing.JFrame implements ItelaConsulta {

    /** Creates new form FrmCaixa */
    public FrmCaixa(Caixa caixa) throws DAOException{
        initComponents();
        String formato = "dd/MM/yyyy";
        SimpleDateFormat dataformatada = new SimpleDateFormat(formato);
        DatajFormattedTextField.setText(dataformatada.format(new Date()));
        gerarSaldos();
    }

    public void gerarSaldos(){
        Date dataCaixa = new Date();
        List<Double> saldos = caixaDao.calculaSaldos(dataCaixa);
        saldoAnteriorjLabel1.setText(String.valueOf(saldos.get(2)-saldos.get(3)));
        valorEntradajLabel.setText(String.valueOf(saldos.get(0)));
        valorSaidajLabel1.setText(String.valueOf(saldos.get(1)));
        Double saldoAtual = saldos.get(2) - saldos.get(3) + (saldos.get(0) - saldos.get(1));
        saldoAtualjLabel1.setText(String.valueOf(saldoAtual));
    }
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")




    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        AssociadosjPanel = new javax.swing.JPanel();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        NumerojTextField = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        DatajFormattedTextField = new javax.swing.JFormattedTextField();
        jLabel3 = new javax.swing.JLabel();
        PlanoContasjTextField = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        HistoricojTextField = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        saidajFormattedTextField = new javax.swing.JFormattedTextField();
        jLabel6 = new javax.swing.JLabel();
        jToolBar1 = new javax.swing.JToolBar();
        jButton1 = new javax.swing.JButton();
        valorEntradajLabel = new javax.swing.JLabel();
        saldoAnteriorjLabel1 = new javax.swing.JLabel();
        saldoAtualjLabel1 = new javax.swing.JLabel();
        valorSaidajLabel1 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        CodigoContajTextField = new javax.swing.JTextField();
        EntradajFormattedTextField = new javax.swing.JFormattedTextField();
        jPanel2 = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        NumerojTextField1 = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        DataContajFormattedTextField2 = new javax.swing.JFormattedTextField();
        jLabel10 = new javax.swing.JLabel();
        CodigoContajTextField1 = new javax.swing.JTextField();
        jButton2 = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jTextField6 = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        DataContajFormattedTextField3 = new javax.swing.JFormattedTextField();
        jLabel13 = new javax.swing.JLabel();
        jTextField7 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        SalvarjButton = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Movimento de Caixa");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        AssociadosjPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        AssociadosjPanel.setPreferredSize(new java.awt.Dimension(800, 600));
        AssociadosjPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        URL url = this.getClass().getResource("/imagens/logo_mini.png");
        Image imagemTitulo = Toolkit.getDefaultToolkit().getImage(url);
        this.setIconImage(imagemTitulo);
        this.setLocationRelativeTo(null);
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jLabel1.setText("Nº Lançamento");
        jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 13, -1, -1));

        NumerojTextField.setEditable(false);
        jPanel1.add(NumerojTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 30, 80, -1));

        jLabel2.setText("Data Lançamento");
        jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 13, -1, 20));

        try {
            DatajFormattedTextField.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter("##/##/####")));
        } catch (java.text.ParseException ex) {
            ex.printStackTrace();
        }
        jPanel1.add(DatajFormattedTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, 90, -1));

        jLabel3.setText("Histórico");
        jPanel1.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 93, -1, 20));
        jPanel1.add(PlanoContasjTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 70, 250, -1));

        jLabel4.setText("Plano de Contas");
        jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 53, -1, 20));
        jPanel1.add(HistoricojTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 110, 370, -1));

        jLabel5.setText("Valor Entrada");
        jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 133, -1, 20));
        jPanel1.add(saidajFormattedTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 150, 100, -1));

        jLabel6.setText("Valor Saida");
        jPanel1.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 133, -1, 20));

        jToolBar1.setFloatable(false);
        jToolBar1.setRollover(true);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/magnifier.png"))); // NOI18N
        jButton1.setToolTipText("Pesquisa Plano de Contas");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                consultaPlanoContas(evt);
            }
        });
        jToolBar1.add(jButton1);

        jPanel1.add(jToolBar1, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 70, 30, 20));

        valorEntradajLabel.setForeground(new java.awt.Color(0, 51, 204));
        valorEntradajLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        valorEntradajLabel.setText("0,00");
        valorEntradajLabel.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(valorEntradajLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 200, 80, -1));

        saldoAnteriorjLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        saldoAnteriorjLabel1.setText("0,00");
        saldoAnteriorjLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(saldoAnteriorjLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, 80, -1));

        saldoAtualjLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        saldoAtualjLabel1.setText("0,00");
        saldoAtualjLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(saldoAtualjLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 80, -1));

        valorSaidajLabel1.setForeground(javax.swing.UIManager.getDefaults().getColor("nb.errorForeground"));
        valorSaidajLabel1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);
        valorSaidajLabel1.setText("0,00");
        valorSaidajLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel1.add(valorSaidajLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 200, 80, -1));

        jLabel18.setText("Saldo Anterior");
        jPanel1.add(jLabel18, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 185, -1, -1));

        jLabel19.setText("Valor Entrada");
        jPanel1.add(jLabel19, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 185, -1, -1));

        jLabel20.setText("Valor Saída");
        jPanel1.add(jLabel20, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 185, -1, -1));

        jLabel21.setText("Saldo Atual");
        jPanel1.add(jLabel21, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 185, -1, -1));
        jPanel1.add(CodigoContajTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 70, 80, -1));
        jPanel1.add(EntradajFormattedTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 150, 100, -1));

        AssociadosjPanel.add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 400, 230));

        jLabel8.setText("Nº Conta");

        jLabel9.setText("Data Emissão");

        jLabel10.setText("Código Conta");

        jLabel11.setText("Cedente");

        jTextField5.setText("jTextField1");

        jTextField6.setText("jTextField2");

        jLabel12.setText("Data Vencimento");

        jLabel13.setText("Valor a Pagar");

        jTextField7.setText("jTextField3");

        jLabel14.setText("Observação");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addContainerGap(349, Short.MAX_VALUE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addContainerGap(332, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(CodigoContajTextField1)
                                    .addComponent(jLabel10))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField6, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(NumerojTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel8))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(DataContajFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel2Layout.createSequentialGroup()
                                        .addGap(4, 4, 4)
                                        .addComponent(jLabel9))))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(DataContajFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel12))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel13)
                                    .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(510, 510, 510))))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(NumerojTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(DataContajFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(CodigoContajTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel13)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(DataContajFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel14)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        AssociadosjPanel.add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 400, 10));

        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        SalvarjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/tick.png"))); // NOI18N
        SalvarjButton.setText("Salvar");
        SalvarjButton.setToolTipText("Salvar Lançamento");
        SalvarjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SalvarjButtonActionPerformed(evt);
            }
        });
        jPanel3.add(SalvarjButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 8, -1, -1));

        jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagens/cross.png"))); // NOI18N
        jButton4.setText("Fechar");
        jButton4.setToolTipText("Fechar");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fecharMovimentoCaixa(evt);
            }
        });
        jPanel3.add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 8, -1, -1));

        AssociadosjPanel.add(jPanel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 250, 370, 40));

        getContentPane().add(AssociadosjPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 420, 300));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void fecharMovimentoCaixa(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fecharMovimentoCaixa
        this.dispose();
    }//GEN-LAST:event_fecharMovimentoCaixa

    private void consultaPlanoContas(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_consultaPlanoContas
        // TODO add your handling code here:
        
    }//GEN-LAST:event_consultaPlanoContas

    private void SalvarjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SalvarjButtonActionPerformed
        caixa.setConta(contas);
        caixa.setDataCaixa((Date) DatajFormattedTextField.getValue());
        caixa.setHistorico(HistoricojTextField.getText());
        caixa.setValorEntrada((Double)saidajFormattedTextField.getValue());
        caixa.setValorSaida((Double) saidajFormattedTextField.getValue());
        try {
            caixaDao.salvarCaixa(getCaixa());
        } catch (DAOException ex) {
            JOptionPane.showMessageDialog(null, "Erro salvar Lançamento\n" + ex);
        }
    }//GEN-LAST:event_SalvarjButtonActionPerformed

    public Caixa getCaixa() {
        return caixa;
    }

    public void setCaixa(Caixa caixa) {
        this.caixa = caixa;
    }

    /**
    * @param args the command line arguments
    */
  
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel AssociadosjPanel;
    private javax.swing.JTextField CodigoContajTextField;
    private javax.swing.JTextField CodigoContajTextField1;
    private javax.swing.JFormattedTextField DataContajFormattedTextField2;
    private javax.swing.JFormattedTextField DataContajFormattedTextField3;
    private javax.swing.JFormattedTextField DatajFormattedTextField;
    private javax.swing.JFormattedTextField EntradajFormattedTextField;
    private javax.swing.JTextField HistoricojTextField;
    private javax.swing.JTextField NumerojTextField;
    private javax.swing.JTextField NumerojTextField1;
    private javax.swing.JTextField PlanoContasjTextField;
    private javax.swing.JButton SalvarjButton;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JFormattedTextField saidajFormattedTextField;
    private javax.swing.JLabel saldoAnteriorjLabel1;
    private javax.swing.JLabel saldoAtualjLabel1;
    private javax.swing.JLabel valorEntradajLabel;
    private javax.swing.JLabel valorSaidajLabel1;
    // End of variables declaration//GEN-END:variables

    public void setData(Object objeto) {
        throw new UnsupportedOperationException("Not supported yet.");
    
    }

    CaixaDao caixaDao = new CaixaDao();
    Caixa caixa;
    PlanoContas contas = new PlanoContas();

}
